// function checkAge(min) {
//   return function (age) {
//     return age >= min
//   }
// }

// let checkAge18 = checkAge(18)
// let checkAge20 = checkAge(20)

// console.log(checkAge18(17))
// console.log(checkAge18(19))
// console.log(checkAge20(22))

const checkAge = min => age => age >= min

let checkAge18 = checkAge(18)

console.log(checkAge18(17))
